from sqlalchemy import String
from sqlalchemy.orm import mapped_column, Mapped
from model.base import Base


class Testcase(Base):
    """测试用例"""

    __tablename__ = 'testcase'

    # ID编号
    id: Mapped[int] = mapped_column(primary_key=True)
    # 用例名称
    name: Mapped[str] = mapped_column(String(30))
    # 请求URL
    url: Mapped[str] = mapped_column(String(100))
    # 请求方法
    method: Mapped[str] = mapped_column(String(10))
    # 请求参数
    params: Mapped[str] = mapped_column(String(100))
    # 请求体
    data: Mapped[str] = mapped_column(String(300))


